

let {mat4,vec3} = require('gl-matrix');

let proj1 = mat4.create();
mat4.ortho(proj1,
    -1,1,-1,1,1,100);

let v1 = vec3.fromValues(0,0,100);
vec3.transformMat4(v1,v1,proj1);
console.log(v1);




let proj2 = mat4.create();
mat4.ortho(proj2,-300,300,-300,300,1,100);
let v2 = vec3.fromValues(0,0,100);
vec3.transformMat4(v2,v2,proj2);
console.log(v2);

// console.log('-------------------------');
// console.log('proj1:',proj1);
// console.log('proj2:',proj2);
